package com.tarena.lbs.service;

import com.tarena.lbs.entity.Coupon;

import java.util.List;

public interface CouponService {
    boolean addCoupon(Coupon coupon);
    Coupon getCouponById(Integer id);
    List<Coupon> listCouponsByActivityId(Integer activityId);
    boolean updateCouponStock(Integer couponId, Integer num);
    boolean deleteCoupon(Integer id);
    boolean batchDeleteCoupons(List<Integer> ids);
    List<Coupon> listCouponsByActivityIdWithoutActivityIdField(Integer activityId);
}
